Made edge test cases passed.