Adds functests.