Added Tests for user registration.
need to be finished