level up swift test file

improve the file used to test swift.

convert into a template.
create a class to configure and deploy it.
Merge pull request #86 from bodepd/swift_testing_file

level up swift test file