swift: create tests