add tests to notebooks api

- check for correct status codes
- check headers location
- fix COPY api