wrote leakdb tests, set cache true, better examples