Revised shelve robot code to make unit tests more comprehensive