Adding unit tests for linear regression model. Fixes to DAO unit tests.
SensorReadingsDAOTest now uses a special test database instead of the normally named database.