Adds tests to include/lru.h + fixes small issues

indeed, i will update the code and add assertions to ensure the good behavior.