Fix failing tests; add unit test for Workflow functionality, 'Publish now', and sending emails to owning group only if a page is owned by a non-system group