unit tests, conforming to the readme, bugfixes 0.1.8-alpha