fix the missing assertation and optimize RobotsTest code style.