This is test code, and NPE here isn't recoverable (so the resulting error is OK).  Similarly, we'd never go directly for the TCCL like this in prod code. :)