added testcases for #764

- refs #764, #308