Added a simple race test with long thread waits