testing Event js model