make database methods test more stable