tests for element presence