fixed output for km_test script compatibility