[vinh] correcting tests after refactoring and adding integration test reading in file