add test for cache clear
clean up console output
increase test coverage, cleanup