Ads model tests and database configuration for Travis CI build