tests for newsapi