Fix ErrorElement test