add test for executed query