Replace several assertions with a shared helper
Use predicate helper for focused
Rename 'id' to 'elementId'