added failing BOM testcase.
added BOM detection and subsequent parseError.
Merge remote-tracking branch 'staabm/bom'
Fix BOM detection test