make functional tests use referee directly