BER_length was broken, fixes bug #98734
add more tests for BER functions
prepare for release 0.32