fixed AssertionError: '["x"]\n' != 'a["x"]\n'