Fixed tests so they do not call pynn setup multiple times