added test case for SF bug #1296
applied patch for SF bug #1296