NPE in some unit tests.