Added test case for get_posts
Adding more tests for model
Merge pull request #2 from rupalibehera/db_test

Added test case for get_posts