New tests, revamping main.c, fixing texture manager bug