More fixing after #1647

- better handling of 400 for create/update
- more tests for that