recipe refactoring and chefspec testing