Added unit tests for stored workflow definitions