added unit test and completed the endpoint for creating a new user account

Signed-off-by: Lyndon Michael Bibera <secret.transaction@gmail.com>