improved fifo test

buffer overlap test is failing
added valgrind to makefile

fixed some uninitialized variable bugs in tests too