a little refactoring in the specs