Added element position assertion