Unit tests

Fixes https://github.com/rhiever/reddit-analysis/issues/21