Adding unit tests to validate that exceptions are raised when mocking a nil object.