Fixed #23136 -- Added the test with a complex app

Added the test with a complex app to see the
behavior over differents databases.