The tests use a very custom "mocking" system which has clearly reached it's limits. We should use something better.