Test the validity of a csrf token.