Added some tests for user register system