Little refactoring in specs