Added unit test for get_used_textureslots