Rewording some tests, adding error checking for json post data tests
Adding error checking for json data to main controller