Fixed error in transaction spies (not returning value from valueFn)