Configured FactoryGirl

Cleaned up tests by using factories.
Removed dotenv dependency.