test directory.events