fix job lock test
Added test case to reproduce error
Fixed missing done
No longer saves stale jobs