add tests for payout