Fix test crash and update output format