Test for `write` function
Complete queue implementation and test
Complete `init` function and test