Simplify types test

We don't need to check for exact returned string, checking it is not
empty is actually enough.