Added test for https://github.com/balderdashy/sails/issues/2033