Add tests
Add more tests. Add doc comments
Add trim filter test