Raising error in replaceLineInFile function if key not found
we should raising an error in replaceLineInFile function if key not found especially important for integration tests
we should raising an error in replaceLineInFile function if key not found especially important for integration tests