fix post endpoint test