Yes, you are correct. It looks through the test cases and compares the path generated is equal to the correct path (which is just the key).