commented, and improved several tests (particularily for function arity)