added test and basic implementation for FormObject conversion