add testcases for #480