Updating tests to work with CSRF