Using JsonRequest for unit testing

Thanks to William Durand for jsonRequest & assertJsonResponse