(#33) Fix NPE in TestCase