Add test library methods for events