Refactor tests

* Add runTestCase
* Remove testBoundaries which fail to test corner cases
Add test on issue #6