Change static queries to dynamic queries in core/tests/Drupal