configured googletest, added some funky tests and fixed some bugs