[master] Added unit tests for UnityRegister.