Add tests for builtin functions