Added tests for degenerate cases