fixed test and removed unused var