added initial registration and registration tests