add objective and its tests