Fixed trend and group tests
Fixed some more tests
Fixed some more tests
Merge pull request #5 from flipkart-incubator/testfixes

Fixed test cases.