Added unit test and fix issue #2 the case of less jobs than queue size in the stack
Merge pull request #3 from goosemo/fix/issue-2-less-jobs-than-queue-size

Added unit test and fix issue #2 the case of less jobs than queue size i...