Helpers to decouple tests