Add AV as development dependency for railties

It's needed for tests
Add missing requires inside AV