Features/issue 71

* misc fixes to some testcases and docs to run tests
* added test and code to close issue #71