Fixed Unit Test for Periodic Boundary Condition