Tests for parsing arguments.
Include unit tests for main.