added a testcase for #277

- refs #277, #308