Added an option parser class with related tests