Fixed render on reset collection
Added test data for posts
pep8