updated the rest-spec, and fixed an error in the integration tests after switching to expect