[TEST] Testcase for #6639