Implemented testBit

JC; I spent 5 minutes on this.