Move survey out of test.js