Fixed read-only permissions in tests.

Fixes #703.
Merge pull request #948 from jrrideout/issue-703

Fixed read-only permissions in tests.