added tests

tests for issue 191