Fix requirements distribution.
Add tests.