Register for Event for test purpose