Added unit tests

Hi

I added some unit tests for the mapper. You may be interested in pulling them. I simplified the Article class as well.