Changed samples for Test cases, according to the changes made in API

Changed samples for Test cases, according to the changes made in API consistancy work. I missed these check-ins earlier