refactor kite test