MAP-954: support test mode.