test error condition for post