Added JUnit tests for 2, 4 & 12bit types