Improve error hanlding in Arguments class
Complete test cases for the Arguments class