added tests and fixed bugs in 128 bit difficulty