Added test of setBitFromIndex