Removed deprecated method  from tests