It is also used to test for arsenic . The arsenic is reacted with hydrogen to make arsine , which reacts with mercury ( II ) bromide to turn it yellow or brown . The white mercury ( II ) bromide will turn yellow , brown , or black if arsenic is present in the sample .