[PATCH v2 8/9] ntoskrnl.exe/tests: Read the expected lengths from the registry.