fate: add some helper functions to simplify test rules