Write tests to cover each sequence of operations