Add unit tests ported from Python (maybe with errors)
Improve parsing positional args
Fixing errors
Little refactoring
Fixing tests