Create an automated test suite

* fixes, #2
* unittest2 was replaced by py.test
* previous test was repaired
* notes on running tests was added to README.md