Added integration test for injected cookie_jar. Also updated it to use the new expect() syntax