add test targets for iOS and OS X. Add Rakefile for test runner.