Testing for Execution with Unnecessary Privileges