Unit tests and documentation for Competition