Update gems and add tests