Let $\mathbb F_2^n$ denote the set of binary vectors of length $n$. A $k$-sparse parity function is a linear function $h:\mathbb F_2^n\to\mathbb F_2$ of the form $h(x)=u\cdot x$ for some $u$ of Hamming weight (number of positive entries) $k$. Let $\text{SPF}_k$ denote the set of $k$-sparse parity functions.
I am interested in finding functions $f$ which look like $k$-SPFs at a glance, but are actually not. Specifically, for any subset $X$ of $\mathbb F_2^n$ of cardinality $m$, there should exist some $k$-SPF $h$ such that $f(x)=h(x)$ for all $x\in X$. Subject to this constraint, the minimum $L_1$ distance (i.e. the number of entries on which two functions differ) from $f$ to the set $\text{SPF}_k$ is to be maximized.
For $m=1$ the problem is fairly easy, but for $m>1$ I am stuck and really am looking for any work which might contain useful ideas. For a concrete question, how about: what is the maximum $L_1$ distance that can be achieved under the above constraints?