added build factory to rspec tests