use new api in case
Merge pull request #240 from Dhilan007/tests_v3.0

use new api in case