Added new test cases for iscontiguous, and fixed issues found by them