Remove texture unit assignments and added tests.