added tests for survey