tests for post method  passed