rename test_sql_patent to be more accurate