finished up unit tests for waiting.