England all out for 400 on day 2 in fourth Test