fixed texture problem
fixed tests