Unit tests for navigationhiding