fixed test using local instead