Added initializeWithFile test case.