add rewards service and some basic tests