improve unittests getrelativerevision. Bit code reformatting unit tests