adding tests, caching top value in density iter