Get transactionReference from current request (+fix tests)