Added queue pausing for unit test