Doctest additions

Add some tests that have helped me out as I'm working through this course independently. The additional filtering test in particular caught my initial incorrect implementation that let to trouble down the road.