wrote queue and moved tests to other file