Change assertGet body check from StringType to str
flake8 linting apitestcase and integration tests