Replace static queries with dynamic queries in InsertDefaultsTest.php file