[TASK] Refactor trustline test code to reduce duplication and test response body before status code and headers

[TASK] Use object for arguments to checkGetRequest and checkPostRequest

[TASK] Clean up trustline test code, change parameter names, function signatures

[TASK] Make arguments to testGetRequest and testPostRequest mandatory