Register: Fix copy-paste typo.
Register: Add explicit casting constructor with unittest.