Test register and null checks.