Add support for tests to be empty queue halfway.
Enable use strict and use warnings.
Add actual tests to be empty queue halfway.
Reduce wait time.