100% code coverage

This was pulled out from somewhere else to make testing it easier.