test for GRAILS-11787 "hasOne are not initiated as bidirectional (OneToOne)"