Fix two bugs

- When the resolution is high, we need to new array q in DeformationTestCase;
- The index ranges in BarotropicTestCase should be changed.