fix tests that were failing due to wrong placement of helper functions

https://github.com/joelmoss/bitmask_attributes/pull/57 is still needed to make all tests pass