add test case for BOM detection