Fix test to deal with access control issue in older Ruby versions