added test code for getting events nearby