update tests
fix example with "functions"