Move func tests to FunctionsTests