Improve DirectCode Keys Test