add swift tests

Change-Id: I61496feeb4d14cf65c59682245e83571489b0216