Added hacky support for mocking nulls.