Generalize fetch and generation testing