fix xpath last() tests