Integration tests for controllers and code refactorings