Feature/tests

Adding code tests against apple's implementation and SDMMobileDevice.