Added tests for both synchronous and asynchronous testing of Referee.