added tests and fixed anouther bugs in 128 bit difficulty