Fixed a number of compile warnings in mount tests.