Remove duplicate expect()