Moved test code to its own file and added README.md.