added test cases for SF bug #1297/GH issue #7