Fixes new test cases to run without a global sudo as sftnight user

Fixed test cases **016** and **017** to run without a global `sudo`. All backend test cases already work without it, though.

Additionally I added a HEREDOC cosmetics commit.