add test case for prefix scanning