test sequelize query