Unit test for PreferredFormService