fix inability to get null constant value in method data

also fix strange test nesting

bugz: 26005