add unit test (from iOS)