added code to test post code