Adapts test to new database conditions