migrated testQueryNoNet