add length, equals and nilp
generated test