Added regression test with feature hashing

Reorganized the unit test for regression to test regression both with and without hashing.