advapi32/tests: Test the correct error codes.