add specs and set TaskStatus completed_at correctly [Finishes #70701470]