Fix controller functional test to ensure json result