Fix fields unit tests.

- add preprocessor flag, that is off for debug builds
- use flag in benchmark parts of field_speed test and region test