nullcheck for tests