preparations for unit-testing