Fixing datasource for functional tests

Testing requires a whole separate database and it needs data in it. It
also needs the data to be brand new so we need the bootstrap script to
run when running in test mode.