Fix some actor problems, add test for buffer pool allocation