Update daemon handler to send actual data

and add tests for it