Add test for has_BOM