Testing the local density approximation with energy-versus-separation curves of jellium slab pairs