Thanks for the prompt reply. I can confirm that the changes above fix the test.
rake install fails on OS X 10.12