Rewrite and enable server testcases

Currently updated for Transmitter.

I've added some comments in the code for some potential issues that have come up.