Finished tests for buffercount
Moved code for timeout