tests: add test case for parsing long option values.