Fixed issue in TrxFileCorrecter and added approval test