add tests for https://github.com/balderdashy/sails-mongo/issues/165