Futher testing of InitialImportProcessingHandlerTest and fixes to memory
mnagement