add test coverage and proper behavior for getting versions of a cookbook