Re-enable random execution of tests
Fix memory leaks in server medium tests