Added tests for registration.