prepare for tests (fixes #21)