The changes are part of President Xi Jinping's wider push to align the legal system with the country's social and economic modernization and for some legal reformers, the code is a test of how far China will go in allowing civil liberties that might impinge upon state power.