Feature/tests

Unit tests for the partitioner and the JSON string decoder