adapted navigation on labels and segments
fixed tests for segment and document navigation