tests for new interface function val_len and partial_val