new api to control mock behavior based on calling arguments