Fixed a bug in sign
Added unit tests for symmetric boundary conditions