Added an entry point and couple test cases for user factory