fixed vega calculation and added vega tests