Unit test added

https://github.com/sequelize/sequelize/pull/1754