add test coverage for survey helper