added complete?() method and updated test to use it