Tests added

Yes, I know, that's why I added nokogiri to the suite. I think that the test should be more atomic and not based on a mere file comparison. And, as lleir said, I have to test the internals, too, I think this is only the base for a complete test suite