added deallocation tests
added more generic way of allocating memory blocks
added test for free space