Fixed the compute_boundry  bug and add some new test files.