Adding tests for pause function