Fixing evnet on Mac OS X Mavericks and tests