Created tests for preferred vendor and wost vendor functions, double checked their functionality.