fix flaky tests

- use schema for all nested objects if not testing
  dynamic mapping
- use columns of defined schema to avoid dynamic mapping