added events unit testing