Added unit test for reducer using Mockito