Fixed test namespace setter compilation exclusion on OSX.

Review: https://reviews.apache.org/r/27395