fixes for new project structure, fix to make it work during tests, error message responses now being picked up