Add tests for article summary generation

I was looking into working on issue #109, but the lack of tests for the summary generation deterred me. So, instead I worked on those and here they are.