Add pass callback to function test