Added generic function testing