automatic testing for HBase (+ some code fixes)