use rails in tests