Add extra assert for more validation of native callbacks