add test for barCode