Added optparser test and coverage for coveralls.