Add tests to prevent regressions and obvious errors.
Add tests to prevent regressions and obvious errors.