Add as_null_object to make RSpec tests passed.