adds a testcase for the bug introduced in 61953fec59e30502fccd167b0bbfbc5c3c590a78, merged in 20831e7ea2373639477ef04ad9115a8ed3f9cd80 and fixed in cf0aab827bce682cb6d033bcac33f2ff7b79be9f 

refs #380