Some minor fixes and updates:
- added some permutation tests
- ITest rewriten
- And so on