Added further tests to setBitFromIndex