fixes to posts and image upload tests