test output generation.