fixed issues in buddy memory allocator, also improved tests a little bit