Test-time regression: a unifying framework for designing sequence models with associative memory