Made tests for several functions and created simulated events