Fixes competition_pk references in tests