Added tests and implemented functionality for clearing textures and setting exact values for last keyframe before the end of the animation