Minor improvements

- Skip autocreate writing tests if repository does not support
  autocreate
- Throw better exception
Merge pull request #139 from phpcr/minor_improvements

Minor improvements