Added unit tests for setting the *accepted* and *started* tasks states.  Added other missing tests while here.