level up swift test file

improve the file used to test swift.

convert into a template.
create a class to configure and deploy it.