Updated the tests to use complete()