Don't use getAllTypes. Throws exceptions in test