Don't write metadata in test mode.  Fixed test mode output.