add tests for option parser