Add a test for ewald()