fix failing test
refactor mock-participant test code