GRAILS-10166 - Add data-mapping tests for embedded property queries; fix NPE in test

It seemed weird to have the bulk of tests for this change in grails-core so I created tests in the data-mapping project as well. Also, I found an issue that caused one of the other embedded tests to NPE. I must have missed that before I submitted last time, sorry.