Updated controller unit test to mock the mapper