Tests for RegisterController