adds competition.secret_key, view modifications and tests