Tests POST request when new record is saved.