testing for read permissions, getting rid of copy-past errors by way of code coverage