Writing tests for active navbar