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

i think we need the lru_pinned = false outside of the if block in case lru_unpin() is called on an object that is not currently on an LRU.