Test primal-dual relationship in Ridge.