Fix repo spec test for newer apt gem versions