Added tests and survey js for dynamic survey pages