simplified test case
backport 85fc05d86f91d76de2a0eb364d4606a701f7336b from dev to master as nodeunit tests failing