Added tests for WaitAll (#8)