events written and tested