Test for legacy API