fixed flushdb test