ar dependency and gem version update, tests refactored