refactor bit operations spec