Move parser creation into method and write tests

Move parser creation in arg_parser.py into create_parser function,
allowing for easier unit testing

Add unit tests for arg_parser.py in test_arg_parser.py