fix for #324 - test case