Is there a test case for the case where `DeclaringType` is null?