Add optparse to unittests