preparing rails 4 app for testing