Fix code style errors in tests
Enable Checkstyle for tests
Fix thread safety for FunctionRegistry