Fix test on getElement method.