corrected syntactical errors in factories.rb