More robust and concise testing of createCommandQueue