Add some unit tests.
Fix bug in tweet filter.