It seems that this test is probably leaking since for instance this object is never freed. The same applies for the test labels and feature and the resulting labels below.