Fixed bug and created test that basically works, but only once (until the survey id is set)