Adding unit tests.
Merge branch 'master' of https://github.com/cathywu/traffic-estimation into add_unit_tests