add test case
add test case
add test case
add checkpoint for cache size.
properly clean factory class settings.