Remember to free trees in test_read function