simple npe in tests fixed