DB Java calls are Asynchronous. adapt Test class.