writing tests for navigation