A trivial unit test + associated documentation

Alejandro addressed the fact that this project needs tests (grapesmoker/qems2#13); this this is a very small first step in that direction. 

This pull request also includes a couple minor fixes to the readme and adds a short section on how to run tests.