improving cloudmanager tests for postgres and sqlite3