Making the survey functional, and creating a test case