Added test for jobs list not being cleared.
Fixed clear test.
Merge pull request #4 from orangemug/clear-internal-refs

Clear internal refs, fixes #2