Refactor the UserForm test case