test_sql with day of week