Revoke privileges for a user on tables with like names
You need to reference the record of the cursor loop:
EXECUTE format('REVOKE DELETE, INSERT, UPDATE ON TABLE %I.%I FROM test;', 
               t.table_schema, t.table_name);
               ^-- here        ^-- here