added unit tests for the kernel memory allocator