Tests and fixes for POST