added tests for registration