[CF-165] Add unit tests to preferences service

 - Changes to primary key of RESOURCES table in DBTables
  - Added scalatest to the build.gradle
  - Wrote integration tests for DBTables
I was thinking irrespective of what we use (may be prostgres) in production, tests could continue to use its own instance of h2.