Fixes for anon test

Fixes https://github.com/Tribler/tribler/issues/640.