wrote passing tests for rewards