Added unit tests for trends