Add unit test for option.