ported test to spock
more test coverage for DefaultPolymorphicDomainObjectContainer