Refactoring Chef tests