added getRecordRouteHeaders and corresponding unit tests