tests for post.js