Fixed unit test and pubDate bug