Added "make test" which runs all tests, changed makefiles to compile debug symbols.
Modified allocation code, now it passes all the allocation tests