safe state for unit test