Adapted loadtexture test to new Texture class
Fixing texture class