added tests to bitdiff