Updates README. Adds tests for README example.