core: Add a spec for checkout

And fix the complete method to call without any arguments