test random and sequence write