Write unit test to base handlers