Added timeouts to tests with onComplete.