updated to implement Delegate on tests