Add equeue:get_state/1 to inspect the state of the queue

Also improve on tests