[fix] Updated Tests to reflect the new API