Added getBit and test for it.