Fix tests altering databases for jenkins