tests: add testcase for bug #705633