Add functional tests for JSON responses
Add before filter methods