added simple testcase -- more to come hopefully