[tests] tests for user model - more IF branches are tested