Changed to using a different mechanism for creating temp files needed
for tests.
Started adding tests for checkout console command and cleaning up the
checkout implementation.