Changes code to add controller for test
Makes code specific to handle tests