Added onCompletion tests.