added tests for issue #27