Refactored insert queue tests