tests for anyevent loop added