test cases for #618 I forgot to add