Add enum test case for registerFormInterface (scheduled for deprecation). See #681.