avoid NRE in tests