integer specs working after refactoring