adding unit tests for reward_repository and task repository