Common tests

Common tests working in iOS and OS X. Tests also run on 10.9 now so should cover all versions.