started to write a testcase, not sure whether it is done properly

This introduces tests for #34