Add tests for negative cases.