added a testcase for #534

refs #233, #534