Sanitize basepath in test fixtures.