updated gems and modified some tests