Tests added to gen_spec.rb