Fixed NPE Pointer in test