Added register error tests