added new unit test with texture reinitialization