Fix navigation menu helper tests

- Trim output, as EOF endings were leading to differences