Adds specs
Fixes missing author/assignee state on copy
Merge pull request #944 from opf/fix/workflow_copy_4285

[FIX] Workflow copy 4285
[#8449] Fix errors mentioned by JSHint

https://github.com/opf/openproject/pull/1405