fixed timeout and test nthoftype
use old api for tests
Merge pull request #45 from bezoerb/#33

#33