more unit tests, fix bug in posts.atom