added test for nice bom handling