Evan Tang : riched20: Move test class creation to a helper function.