Fixed tests so that they work with the db.js changes (no .rows), also loaded the necessary js files for testing