Added test cases for basic workflow classes.
Added tests of time stamp rules

…and fixed a few bugs in the process...