Adjusting tests to handle CSRF headers