fix controller specs for use with json