Test changes. 

Introducing assertions to prove repeated calls with varying (but repeating) params will give correct responses and in a manner that is faster than without. 
Also adding test to show this is not appropriate for statefull functions which may not be obvious to non func devs