Add doc and test for contains param
More robust validation with regard to default param