Add cache generator tests