update gems, clean up test code