test endpoint will return a valid json

Signed-off-by: Ashwin S <ashwin.s@webyog.com>