Fixes tests for sails, adds a missing 'return' to res.ok