New test cases

Added new test cases to test that an error is thrown when try to locate
an element which is not present.