Include validateFunc in example
Update tests