Better output capture on database tests.
Hopefully will point to the issue with debug-mode
resource_database_tables test on the server.
Integration tests changes:
resource_database_locator and resource_database_tables, with additional
output information.