test: divide case and add suitable tests