Wrote Junit tests for Queue.java