add testing with curl example