add test code in buddy system