Anderson injured before first Pakistan Test