Restoring test case for #775, renaming testcase for #778