Add writeResponse "total" field

Also add test for Iterator filter. #106