registration tests

#417