fixing test and remove test for the deprecated api