NH-3417 Unit test and fix

https://nhibernate.jira.com/browse/NH-3417

Normally, I wouldn't add the test in the "core" tests, but....

1. The OP's test case was based on the existing ProjectionTests
2. I couldn't for the life of me figure out how to derive successfully from LinqTestCase. 
3. It seemed like a good fit.