Correctly handling a pop call with nothing in the queue.
Added end-to-end integration tests for successful and failing jobs

Also bumped version.