Stub tests around persistent queue behaviour