testing if registration fails