General test helpers