fix in formatFindAllOptions, use req.query as basis for req.where
updated test for previous fix