add test for pause