added negative registration test