posts api tests