add unit test for complex request (to be added later)
added more debug information output (write allocate)