Added processing of test data. Doesn't work yet.