Make database node test more reliable