add test to check that an element has been added