add test for parsing options