move test.js code to twitter-post-fetecher.js