test(navbar): should not throw if up state does not exist
fix(navbar): only compile up button if up state is found
test(view): direction detection should work with params in state url

Added three expectations regarding the direction detection when the
state url has a parameter in the state URL which is not the last URL segment.