Added example to README.md, some test code cleanup.