Navigation controller and directive testing