Added unit test for pause feature.