Added curl-based tests for the example.