refactored specs for readability