use rake to run tests on iOS and OS X. Remove unnecessary files.