l('/baz');
      });
      test('basic functionality with ?key=value params', function() {
        // Initialized to the window location's params.
        expect(urlElem.query).to.be.eq('');

        // Changing location.search and sending a custom event on the window
        // changes the urlElem.
        replaceState('/?greeting=hello&target=world');
        window.dispatchEvent(new CustomEvent('location-changed'));
        expect(urlElem.query).to.be.equal('greeting=hello&target=world');

        // Cha