* fixed bug in TimeRule
* [testing] added missing tests