Stochastic Gradient Flow Dynamics of Test Risk and its Exact Solution for Weak Features