pass in a history-like object (i.e. one with a navigate function) and test that it receives the correct arguments.