Added test case for checking ArgumentNullException