add test case when input prefixes is null