length validation stub