added check out helper methods, starting with tests.