Add unit tests for creating Arg from Mat