Added tests for degenerate cases

Self-documents, too!