Added assertion.
Performance test added.