Tests updated including location property in class Element