Refactor modfiy command and tests

Parsing of the modify command line is handled by `modfiy_parse_args()`.
Test use the command line.