Added new unit tests to cover null argument exceptions