login user, create test events, query events