init guard for tests