unit test for user service and dao
fix cascade delete issue