factored out helper method in robots.clj tests