queue implementation tests