add unit tests for getEndNavDetails and getStartNavDetails