referee and tests