update stubbing syntax to use allow instead.