Update Bits.java

Reversed the inequality for detecting whether the byte array is large enough.
Added tests for org.bson.io.Bits class. Fix for JAVA-816.