New test for check equals of Competition and the correct code