Testing queue methods by implementing a simple queue of integers