Added some unit tests related.  Refs #7476.
Added class variable for cost function factor.  Refs #7476.