Add functions tests