reconstructing the test data