re-adding the objective function test