Minor improvements

- Skip autocreate writing tests if repository does not support
  autocreate
- Throw better exception