Add test for Swift formpost middleware

Change-Id: Ifb86572d5c050b3e01553160f1774de62fb525bd
Merge "Add test for Swift formpost middleware"