Minor code changes
Refactoring of tests
Bug fix in BitOutputStream.writeSmall_0_3_8_16()