adapted to print same story id for multiple test cases