Fix broken unit tests by removing unusued variable