Added unit test for robot factory.