refactor specs for dryness