Right you are, of course! I missed the definition of tests as a parameter to the function, and I wondered where it was defined -_-'.