improve core test cases

See the single commit notes.
I think this method can work just like `set()`. You complement the `intMask` with `~` and then `&=` it.