Better behaviour mocking in tests

#13 adds d3 event simulation, we should get the current behaviour mocking working in a similar way, and tested.