add onewrite and asmwrite tests, add comments