C API behavior change.. fixed unit test