Option parsing + tests.