now we call registerTest with a single function as a parameter as well