Add lolex to test suite to fix newly failing tests

This used to be a part of Sinon, but it has been extracted to a separate package