Tests for option parsing.