rewritten registration tests