Fixed ``parent`` argument validation mechanism of :mod:`argparse`. Improved test coverage.