add tests for ApiHelper.dumpParameters(); modify method to trim trailing whitespace