Add tests for ToInterfaceDefinition()