Fixed compilation errors in mapping tests