ML: Unit tests implemented using asynchronous callbacks