Update Test Method

Cost Function Modification