minor spec refactoring