Fixed wrong ordering of tests when importing (Closes #292)