add tests for argument error cases