Fixed incorrect method call in 'to_json' test

The 'to_json' test actually called the 'to_liquid' method call.