Change test method and add dependency on Yosemite