changed test data to req, res style.