add more test
it seems that unsafe.copymemory has some issue, changed to use char-by-char read/write
add junit dependency