Testing the proofOfWork method