Proper view tests with status code verification