Handle negative inputs in 'testBitInteger' and 'clearBitInteger'