started writing integration.js test. passes at the moment but not very complex
removed dead code