small refactor in specs