fix test scheduling in multi-threaded test queue