fixed 2 bugs and wrote a slow anonymity testing function
fixed test function