NH-3589 - Add tests

https://nhibernate.jira.com/browse/NH-3589