Adding test for JSON response