modified tpn_spec.rb