Correct non-deterministic test by querying the queue directly.

Closes #60 

@swankjesse