Refactor generic_asset_spec.rb to use factories