Controller methods testing with json views