Fixed function names in tests