Fixed bug in bitset. Added test case.