Implemented unit testing of the User model

Fixed missing required and allowEmpty in User model

Delete empty Rest plugin folder