Updated test framework and added tests

add description of this hashing algorithm as java doc