changed test to see if requested pooled type inherits from the right class