Use uintptr_t in unit test