Test model having slot(str) returning another type.