add test for delta, order of magand error, sys.argv -> argparse