Determination of the appropriate legal test for capacity to marry under the Mental Capacity Act 2005.