changed API on test context