Adding test for listing Posts from the API.

Not sure if I like the for loop over the posts at the end --- any suggestions welcome. Thanks!