replace deprecated mock in warden unit test
replace deprecated stub! in warden unit test