Added first tests.

Separated collectd parsing methods from Reader class to new Parser class.