Fixed a NPE bug when calling the test.dck.