Add tests for Function and NoneOf