error view fixed in production mode
added tests for instance and survey mode and made accompanying fixes, started with API routing/controller tests