$V$-filtrations in positive characteristic and test modules