added a test for open(2)ing files with the wrong permissions.