Added failure messages to tests and fixed a bug where malloc wasn't mallocing block aligned memory, so free was failing.