Resulting key needs to be compared with the expected key which was set for the test case, not just a key.