This test could also be satisfied if the function was only invoked once. As I understand it, the function should be called each time a default value is required? In that case I think you should choose a function which returns a default value each time it is called (maybe something like i++), and make sure it is called at least once