Completed tests for a successful book checkout. Added code that makes them pass, and refactored the testing suite