add optparser with unit tests