Added unit test for the spinner service