Added surface energy to pbc test.