Convert examples into passing unit tests.