added JWT service and tests