tests for arity and containsWith. closes #650, closes #651