Add asserts for new APIs