defined pay_fare, top_up, associated tests