Wrote some tests and added size check to Queue