Used by unit tests, but I find that so dirty ...