initial version of test cases
minor updates for issue #58