add tests for sorting based on user owed to