HAMA-795: improve test case