add tests for work_complete