Fixed expected status codes in tests
Fixed test case setup
Fixed errors in survey controller