add unit test for kwargs memorize