Tests: Added onRegistred event test