[nim] #8 Refactoring tests. Gets rid of bad switches