Added test for Tournament System, fixed some bugs.