add two test cases for O(n^2) behavior